package world

import (
	"MetroBuilderGameJam/gameEngine/geom"
)

type ErrBranchAlreadyExist struct {
}

func (err ErrBranchAlreadyExist) Error() string {
	return "RailRoadBranch already exist"
}

type ErrBranchNotConnectedToAnyEdges struct {
}

func (err ErrBranchNotConnectedToAnyEdges) Error() string {
	return "RailRoadBranch not connected to any edges of line"
}

type ErrRoadIsLooped struct {
}

func (err ErrRoadIsLooped) Error() string {
	return "Loop road not allow to add new branchesState"
}

type BranchErrorAt struct {
	Position geom.Point
	Reason   string
}

func (err BranchErrorAt) Error() string {
	return err.Reason
}
